import request from '@/plugins/request.js'

export function list(data) {
    return request({
        url: '/properties/list',
        method: 'GET',
        data
    })
}

export function add(data) {
    return request({
        url: '/properties/add',
        method: 'post',
        data
    })
}

export function update(data) {
    return request({
        url: '/properties/update',
        method: 'post',
        data
    })
}

export function deleteById(id) {
    return request({
        url: '/properties/deleteById/'+id,
        method: 'post'
    })
}


export function getById(id) {
    return request({
        url: '/properties/getById?id='+id,
        method: 'get'
    })
}
